package com.sg.zhui.visitor.http;

import android.text.TextUtils;


/**
 * Created by Administrator on 2016/11/1.
 */
/*
 * 放网络请求的url地址，每个接口需要加上注释
 */
public class Setting {

    /**
     * IConstants 这个类也有需要配置的
     */

    public static final boolean DEBUG = false;// BuildConfig.DEBUG 预发布环境为fasle,测试环境为true
    // ===================================================================================
    private final static String HTTP = "http://";
    private final static String HTTPS = "https://";
    private final static String SPLIT = "/";

    // ==========================================================================================================
    /*
     * app接口环境
	 */
    //  app.zzbhqdd.com/child/  正式环境  180.76.163.33:9090
    private static final String HOST_TEST = "api.t.drking.club";// 测试环境 180.76.163.33:9090
//    private static final String HOST_ONLINE_R = "114.115.140.117:8083/program/access"; // 预发布环境 114.115.213.85/   api.r.drking.club ， 114.115.213.85/child/app ，192.168.1.166:8080   app.zzbhqdd.com/child/app
//    private static final String HOST_ONLINE_R = "114.115.140.115:8083/mobile/visitor"; // 预发布环境 114.115.213.85/   api.r.drking.club ， 114.115.213.85/child/app ，192.168.1.166:8080   app.zzbhqdd.com/child/app
private static final String HOST_ONLINE_R = "www.xiaolebai.com/access-control/mobile/visitor";

    // image
    private static final String HOST_TEST_IMG = "img.t.drking.club";
    private static final String HOST_ONLINE_IMG_R = "img.r.drking.club";

    //===================================================================
    // detail
    private static final String HOST_DETAIL_TEST = "http://api.t.drking.club";
    private static final String HOST_DETAIL_ONLINE_R = "http://api.r.drking.club";

    // 微信历史病例
    private static final String HOST_WX_BL_ONLINE = "http://dkimg.ixinzang.com";

    //========================================================================
    // can modify
    private final static String HOST = DEBUG ? HOST_TEST
            : HOST_ONLINE_R;// 配置上线是什么环境！！！！！！！！！！！！！！！！！！！！！！！！
    public final static String HOST_DETAIL = DEBUG ? HOST_DETAIL_TEST
            : HOST_DETAIL_ONLINE_R;// 配置上线是什么环境
    private final static String HOST_IMG = DEBUG ? HOST_TEST_IMG
            : HOST_ONLINE_IMG_R;
    public final static String HOST_WX_BL = DEBUG ? HOST_WX_BL_ONLINE
            : HOST_WX_BL_ONLINE;

    // ==============================================================
//    public final static String base_url = "http://114.115.140.117:8083/program/access/";

    public final static String URL_API_HOST_HTTP = HTTP + HOST + SPLIT;// http
    public final static String URL_API_HOST_HTTP_IMG = HTTP + HOST_IMG + SPLIT;// image

    // ==================================================================


    /*
* 发布小视频
*/
    public static String pubSaveVideoRecordUrl() {
        return URL_API_HOST_HTTP + "parent/saveVideoRecord";  //
    }


    // ===============================Server================================


    /**
     * 验证码
     *
     * @return
     */
    public static String sendVerificationUrl() {
        return URL_API_HOST_HTTP + "sendVerification";
    }

    /**
     * 用户信息
     *
     * @return
     */
    public static String queryUserInfo() {
        return URL_API_HOST_HTTP + "queryUserInfo";
    }

    /**
     * 访客申请
     *
     * @return
     */
    public static String visitorApply() {
        return URL_API_HOST_HTTP + "visitorApply";
    }

    /**
     * 访客头像上传
     *
     * @return
     */
    public static String uploadPhoto() {
        return URL_API_HOST_HTTP + "uploadPhoto";
    }

    /**
     * 查询访客或员工所有申请记录及授权记录
     *
     * @return
     */
    public static String queryVisitorApplyList() {
        return URL_API_HOST_HTTP + "queryVisitorApplyList";
    }
}
